from kivy.app import App
from kivy.uix.label import Label
from kivy.properties import StringProperty


class ProfileLabel(Label):
    actor = StringProperty()

    def open_profile_screen(self):
        App.get_running_app().dispatch_event(
            'on_new_screen',
            class_name='profile',
            name=self.actor,
            profile_id=self.actor)
